package com.hopes.bizz.video.common.constant.enums;

import com.hopes.bizz.video.common.api.feign.RemoteVideoDictService;
import com.hopes.boss.admin.api.resolver.EnumResolver;
import com.hopes.boss.admin.api.resolver.IDict;

/**
 * @author yumr
 * @ProjectName bizz
 * @time 2024/1/18 22:43
 */
public enum VideoModDictEnum implements EnumResolver<RemoteVideoDictService> {

    /**
     * 视频表转字典
     */
    video("listVideoAsDict"),

    /**
     * 视频区域转字典
     */
    video_region("listVideoRegionAsDict"),

    ;

    private final String methodName;

    private Class<? extends IDict> remoteClass = RemoteVideoDictService.class;

    VideoModDictEnum(String methodName) {
        this.methodName = methodName;
    }

    VideoModDictEnum(String methodName, Class<? extends IDict> remoteClass) {
        this.methodName = methodName;
        this.remoteClass = remoteClass;
    }

    @Override
    public String getType() {
        return this.name();
    }

    @Override
    public String getMethodName() {
        return methodName;
    }

    @Override
    public Class<? extends IDict> getRemoteClass() {
        return remoteClass;
    }
}
